[INFO] fetching crate codespan-reporting 0.13.1...
[INFO] fixing codespan-reporting-0.13.1 against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] extracting crate codespan-reporting 0.13.1 into /workspace/builds/worker-3-tc2/source
[INFO] started tweaking crates.io crate codespan-reporting 0.13.1
[INFO] removed 0 missing examples
[INFO] removed 0 missing tests
[INFO] finished tweaking crates.io crate codespan-reporting 0.13.1
[INFO] tweaked toml for crates.io crate codespan-reporting 0.13.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate codespan-reporting 0.13.1 on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate codespan-reporting 0.13.1 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 7a73f8c12305b9c329eefb92d6dd997c914a111b2750be0f5aff6fe015e86ef6
[INFO] running `Command { std: "docker" "start" "7a73f8c12305b9c329eefb92d6dd997c914a111b2750be0f5aff6fe015e86ef6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "7a73f8c12305b9c329eefb92d6dd997c914a111b2750be0f5aff6fe015e86ef6" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7a73f8c12305b9c329eefb92d6dd997c914a111b2750be0f5aff6fe015e86ef6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "7a73f8c12305b9c329eefb92d6dd997c914a111b2750be0f5aff6fe015e86ef6" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]    Compiling nix v0.18.0
[INFO] [stderr]     Checking cfg-if v0.1.10
[INFO] [stderr]    Compiling peg-runtime v0.7.0
[INFO] [stderr]     Checking pico-args v0.5.0
[INFO] [stderr]     Checking unindent v0.1.11
[INFO] [stderr]     Checking codespan-reporting v0.13.1 (/opt/rustwide/workdir)
[INFO] [stderr]    Migrating src/lib.rs from 2021 edition to 2024
[INFO] [stderr]    Compiling peg-macros v0.7.0
[INFO] [stdout] warning: `impl Iterator<Item = (Metrics, char)>` will capture more lifetimes than possibly intended in edition 2024
[INFO] [stdout]    --> src/term/renderer.rs:847:10
[INFO] [stdout]     |
[INFO] [stdout] 847 |     ) -> impl Iterator<Item = (Metrics, char)> {
[INFO] [stdout]     |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds
[INFO] [stdout]    --> src/term/renderer.rs:296:6
[INFO] [stdout]     |
[INFO] [stdout] 296 | impl<'writer, 'config> Renderer<'writer, 'config> {
[INFO] [stdout]     |      ^^^^^^^  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 845 |         &self,
[INFO] [stdout]     |         ^
[INFO] [stdout]     = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = warning: this changes meaning in Rust 2024
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/rpit-lifetime-capture.html>
[INFO] [stdout]     = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking peg v0.7.0
[INFO] [stderr]     Checking dirs-sys-next v0.1.2
[INFO] [stderr]     Checking console v0.15.11
[INFO] [stderr]     Checking dirs-next v1.0.2
[INFO] [stderr]     Checking insta v1.43.1
[INFO] [stderr]     Checking rustyline v6.3.0
[INFO] [stderr]    Migrating examples/custom_files.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating tests/term.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating examples/peg_calculator.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating examples/term.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating examples/readme_preview.rs from 2021 edition to 2024
[INFO] [stdout] warning: `impl Iterator<Item = (Metrics, char)>` will capture more lifetimes than possibly intended in edition 2024
[INFO] [stdout]    --> src/term/renderer.rs:847:10
[INFO] [stdout]     |
[INFO] [stdout] 847 |     ) -> impl Iterator<Item = (Metrics, char)> {
[INFO] [stdout]     |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds
[INFO] [stdout]    --> src/term/renderer.rs:296:6
[INFO] [stdout]     |
[INFO] [stdout] 296 | impl<'writer, 'config> Renderer<'writer, 'config> {
[INFO] [stdout]     |      ^^^^^^^  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 845 |         &self,
[INFO] [stdout]     |         ^
[INFO] [stdout]     = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = warning: this changes meaning in Rust 2024
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/rpit-lifetime-capture.html>
[INFO] [stdout]     = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Migrating examples/reusable_diagnostic.rs from 2021 edition to 2024
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.58s
[INFO] [stderr] crater-edition-check: codespan-reporting v0.13.1 (/opt/rustwide/workdir) updating edition from 2021 to 2024
[INFO] [stderr]     Checking codespan-reporting v0.13.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `alloc::vec::Vec`
[INFO] [stdout]    --> src/term/mod.rs:134:9
[INFO] [stdout]     |
[INFO] [stdout] 134 |     use alloc::vec::Vec;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:471:21
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ----------------------------------------
[INFO] [stdout]     |                                  |
[INFO] [stdout]     |                                  immutable borrow occurs here
[INFO] [stdout]     |                                  a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 471 |                     self.set_label(severity, LabelStyle::Primary)?;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 482 |             }
[INFO] [stdout]     |             - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:454:34
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:474:21
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ----------------------------------------
[INFO] [stdout]     |                                  |
[INFO] [stdout]     |                                  immutable borrow occurs here
[INFO] [stdout]     |                                  a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 474 |                     self.reset()?;
[INFO] [stdout]     |                     ^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 482 |             }
[INFO] [stdout]     |             - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:454:34
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed
[INFO] [stdout]    --> src/term/renderer.rs:479:69
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ----------------------------------------
[INFO] [stdout]     |                                  |
[INFO] [stdout]     |                                  borrow occurs here
[INFO] [stdout]     |                                  a temporary with access to the first borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 479 |                     '\t' => (0..metrics.unicode_width).try_for_each(|_| write!(self, " "))?,
[INFO] [stdout]     |                                                                     ^^^        ---- second borrow occurs due to use of `*self` in closure
[INFO] [stdout]     |                                                                     |
[INFO] [stdout]     |                                                                     closure construction occurs here
[INFO] [stdout] ...
[INFO] [stdout] 482 |             }
[INFO] [stdout]     |             - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:454:34
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:612:29
[INFO] [stdout]     |
[INFO] [stdout] 589 |               for (metrics, ch) in self
[INFO] [stdout]     |                                    ----
[INFO] [stdout]     |                                    |
[INFO] [stdout]     |  __________________________________immutable borrow occurs here
[INFO] [stdout]     | |
[INFO] [stdout] 590 | |                 .char_metrics(source.char_indices())
[INFO] [stdout] ...   |
[INFO] [stdout] 598 | |                 .chain(core::iter::once((placeholder_metrics, '\0')))
[INFO] [stdout]     | |_____________________________________________________________________- a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 612 |                               self.reset()?;
[INFO] [stdout]     |                               ^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 633 |               }
[INFO] [stdout]     |               - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain<impl Iterator<Item = (Metrics, char)>, std::iter::Once<(Metrics, char)>>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:589:34
[INFO] [stdout]     |
[INFO] [stdout] 589 |               for (metrics, ch) in self
[INFO] [stdout]     |  __________________________________^
[INFO] [stdout] 590 | |                 .char_metrics(source.char_indices())
[INFO] [stdout]     | |____________________________________________________^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:615:29
[INFO] [stdout]     |
[INFO] [stdout] 589 |               for (metrics, ch) in self
[INFO] [stdout]     |                                    ----
[INFO] [stdout]     |                                    |
[INFO] [stdout]     |  __________________________________immutable borrow occurs here
[INFO] [stdout]     | |
[INFO] [stdout] 590 | |                 .char_metrics(source.char_indices())
[INFO] [stdout] ...   |
[INFO] [stdout] 598 | |                 .chain(core::iter::once((placeholder_metrics, '\0')))
[INFO] [stdout]     | |_____________________________________________________________________- a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 615 |                               self.set_label(severity, label_style)?;
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 633 |               }
[INFO] [stdout]     |               - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain<impl Iterator<Item = (Metrics, char)>, std::iter::Once<(Metrics, char)>>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:589:34
[INFO] [stdout]     |
[INFO] [stdout] 589 |               for (metrics, ch) in self
[INFO] [stdout]     |  __________________________________^
[INFO] [stdout] 590 | |                 .char_metrics(source.char_indices())
[INFO] [stdout]     | |____________________________________________________^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed
[INFO] [stdout]    --> src/term/renderer.rs:629:61
[INFO] [stdout]     |
[INFO] [stdout] 589 |               for (metrics, ch) in self
[INFO] [stdout]     |                                    ----
[INFO] [stdout]     |                                    |
[INFO] [stdout]     |  __________________________________borrow occurs here
[INFO] [stdout]     | |
[INFO] [stdout] 590 | |                 .char_metrics(source.char_indices())
[INFO] [stdout] ...   |
[INFO] [stdout] 598 | |                 .chain(core::iter::once((placeholder_metrics, '\0')))
[INFO] [stdout]     | |_____________________________________________________________________- a temporary with access to the first borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 629 |                       (0..metrics.unicode_width).try_for_each(|_| write!(self, "{caret_ch}",))?;
[INFO] [stdout]     |                                                               ^^^        ---- second borrow occurs due to use of `*self` in closure
[INFO] [stdout]     |                                                               |
[INFO] [stdout]     |                                                               closure construction occurs here
[INFO] [stdout] ...
[INFO] [stdout] 633 |               }
[INFO] [stdout]     |               - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain<impl Iterator<Item = (Metrics, char)>, std::iter::Once<(Metrics, char)>>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:589:34
[INFO] [stdout]     |
[INFO] [stdout] 589 |               for (metrics, ch) in self
[INFO] [stdout]     |  __________________________________^
[INFO] [stdout] 590 | |                 .char_metrics(source.char_indices())
[INFO] [stdout]     | |____________________________________________________^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:480:26
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ----------------------------------------
[INFO] [stdout]     |                                  |
[INFO] [stdout]     |                                  immutable borrow occurs here
[INFO] [stdout]     |                                  a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 480 |                     _ => write!(self, "{ch}")?,
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] 481 |                 }
[INFO] [stdout] 482 |             }
[INFO] [stdout]     |             - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:454:34
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:934:21
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              -------------------------------
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              immutable borrow occurs here
[INFO] [stdout]     |                              a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 934 |                     self.set_label(severity, label_style)?;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 944 |         }
[INFO] [stdout]     |         - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:924:30
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:936:21
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              -------------------------------
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              immutable borrow occurs here
[INFO] [stdout]     |                              a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 936 |                     self.reset()?;
[INFO] [stdout]     |                     ^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 944 |         }
[INFO] [stdout]     |         - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:924:30
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed
[INFO] [stdout]    --> src/term/renderer.rs:942:37
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              -------------------------------
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              borrow occurs here
[INFO] [stdout]     |                              a temporary with access to the first borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 942 |                 spaces.try_for_each(|_| write!(self, " "))?;
[INFO] [stdout]     |                                     ^^^        ---- second borrow occurs due to use of `*self` in closure
[INFO] [stdout]     |                                     |
[INFO] [stdout]     |                                     closure construction occurs here
[INFO] [stdout] 943 |             }
[INFO] [stdout] 944 |         }
[INFO] [stdout]     |         - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:924:30
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:935:21
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              -------------------------------
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              immutable borrow occurs here
[INFO] [stdout]     |                              a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 935 |                     write!(self, "{}", self.chars().pointer_left)?;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 944 |         }
[INFO] [stdout]     |         - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:924:30
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed
[INFO] [stdout]     --> src/term/renderer.rs:1029:31
[INFO] [stdout]      |
[INFO] [stdout] 1023 |           for (metrics, _) in self
[INFO] [stdout]      |                               ----
[INFO] [stdout]      |                               |
[INFO] [stdout]      |  _____________________________borrow occurs here
[INFO] [stdout]      | |
[INFO] [stdout] 1024 | |             .char_metrics(source.char_indices())
[INFO] [stdout] 1025 | |             .take_while(|(metrics, _)| metrics.byte_index < start + 1)
[INFO] [stdout]      | |______________________________________________________________________- a temporary with access to the first borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 1029 |                   .try_for_each(|_| write!(self, "{}", self.chars().multi_top))?;
[INFO] [stdout]      |                                 ^^^        ---- second borrow occurs due to use of `*self` in closure
[INFO] [stdout]      |                                 |
[INFO] [stdout]      |                                 closure construction occurs here
[INFO] [stdout] 1030 |           }
[INFO] [stdout]      |           - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile<impl Iterator<Item = (Metrics, char)>, {closure@src/term/renderer.rs:1025:25: 1025:39}>`
[INFO] [stdout]      |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]     --> src/term/renderer.rs:1023:29
[INFO] [stdout]      |
[INFO] [stdout] 1023 |           for (metrics, _) in self
[INFO] [stdout]      |  _____________________________^
[INFO] [stdout] 1024 | |             .char_metrics(source.char_indices())
[INFO] [stdout]      | |________________________________________________^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]     --> src/term/renderer.rs:846:23
[INFO] [stdout]      |
[INFO] [stdout]  846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]      |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]      |
[INFO] [stdout]  844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout]  845 |         &self,
[INFO] [stdout]  846 ~         char_indices: T,
[INFO] [stdout]  847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed
[INFO] [stdout]     --> src/term/renderer.rs:1063:31
[INFO] [stdout]      |
[INFO] [stdout] 1057 |           for (metrics, _) in self
[INFO] [stdout]      |                               ----
[INFO] [stdout]      |                               |
[INFO] [stdout]      |  _____________________________borrow occurs here
[INFO] [stdout]      | |
[INFO] [stdout] 1058 | |             .char_metrics(source.char_indices())
[INFO] [stdout] 1059 | |             .take_while(|(metrics, _)| metrics.byte_index < start)
[INFO] [stdout]      | |__________________________________________________________________- a temporary with access to the first borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 1063 |                   .try_for_each(|_| write!(self, "{}", self.chars().multi_bottom))?;
[INFO] [stdout]      |                                 ^^^        ---- second borrow occurs due to use of `*self` in closure
[INFO] [stdout]      |                                 |
[INFO] [stdout]      |                                 closure construction occurs here
[INFO] [stdout] 1064 |           }
[INFO] [stdout]      |           - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile<impl Iterator<Item = (Metrics, char)>, {closure@src/term/renderer.rs:1059:25: 1059:39}>`
[INFO] [stdout]      |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]     --> src/term/renderer.rs:1057:29
[INFO] [stdout]      |
[INFO] [stdout] 1057 |           for (metrics, _) in self
[INFO] [stdout]      |  _____________________________^
[INFO] [stdout] 1058 | |             .char_metrics(source.char_indices())
[INFO] [stdout]      | |________________________________________________^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]     --> src/term/renderer.rs:846:23
[INFO] [stdout]      |
[INFO] [stdout]  846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]      |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]      |
[INFO] [stdout]  844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout]  845 |         &self,
[INFO] [stdout]  846 ~         char_indices: T,
[INFO] [stdout]  847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0500, E0502.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0500`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `codespan-reporting` (lib) due to 13 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:471:21
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ----------------------------------------
[INFO] [stdout]     |                                  |
[INFO] [stdout]     |                                  immutable borrow occurs here
[INFO] [stdout]     |                                  a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 471 |                     self.set_label(severity, LabelStyle::Primary)?;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 482 |             }
[INFO] [stdout]     |             - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:454:34
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:474:21
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ----------------------------------------
[INFO] [stdout]     |                                  |
[INFO] [stdout]     |                                  immutable borrow occurs here
[INFO] [stdout]     |                                  a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 474 |                     self.reset()?;
[INFO] [stdout]     |                     ^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 482 |             }
[INFO] [stdout]     |             - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:454:34
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed
[INFO] [stdout]    --> src/term/renderer.rs:479:69
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ----------------------------------------
[INFO] [stdout]     |                                  |
[INFO] [stdout]     |                                  borrow occurs here
[INFO] [stdout]     |                                  a temporary with access to the first borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 479 |                     '\t' => (0..metrics.unicode_width).try_for_each(|_| write!(self, " "))?,
[INFO] [stdout]     |                                                                     ^^^        ---- second borrow occurs due to use of `*self` in closure
[INFO] [stdout]     |                                                                     |
[INFO] [stdout]     |                                                                     closure construction occurs here
[INFO] [stdout] ...
[INFO] [stdout] 482 |             }
[INFO] [stdout]     |             - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:454:34
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:612:29
[INFO] [stdout]     |
[INFO] [stdout] 589 |               for (metrics, ch) in self
[INFO] [stdout]     |                                    ----
[INFO] [stdout]     |                                    |
[INFO] [stdout]     |  __________________________________immutable borrow occurs here
[INFO] [stdout]     | |
[INFO] [stdout] 590 | |                 .char_metrics(source.char_indices())
[INFO] [stdout] ...   |
[INFO] [stdout] 598 | |                 .chain(core::iter::once((placeholder_metrics, '\0')))
[INFO] [stdout]     | |_____________________________________________________________________- a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 612 |                               self.reset()?;
[INFO] [stdout]     |                               ^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 633 |               }
[INFO] [stdout]     |               - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain<impl Iterator<Item = (Metrics, char)>, std::iter::Once<(Metrics, char)>>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:589:34
[INFO] [stdout]     |
[INFO] [stdout] 589 |               for (metrics, ch) in self
[INFO] [stdout]     |  __________________________________^
[INFO] [stdout] 590 | |                 .char_metrics(source.char_indices())
[INFO] [stdout]     | |____________________________________________________^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:615:29
[INFO] [stdout]     |
[INFO] [stdout] 589 |               for (metrics, ch) in self
[INFO] [stdout]     |                                    ----
[INFO] [stdout]     |                                    |
[INFO] [stdout]     |  __________________________________immutable borrow occurs here
[INFO] [stdout]     | |
[INFO] [stdout] 590 | |                 .char_metrics(source.char_indices())
[INFO] [stdout] ...   |
[INFO] [stdout] 598 | |                 .chain(core::iter::once((placeholder_metrics, '\0')))
[INFO] [stdout]     | |_____________________________________________________________________- a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 615 |                               self.set_label(severity, label_style)?;
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 633 |               }
[INFO] [stdout]     |               - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain<impl Iterator<Item = (Metrics, char)>, std::iter::Once<(Metrics, char)>>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:589:34
[INFO] [stdout]     |
[INFO] [stdout] 589 |               for (metrics, ch) in self
[INFO] [stdout]     |  __________________________________^
[INFO] [stdout] 590 | |                 .char_metrics(source.char_indices())
[INFO] [stdout]     | |____________________________________________________^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed
[INFO] [stdout]    --> src/term/renderer.rs:629:61
[INFO] [stdout]     |
[INFO] [stdout] 589 |               for (metrics, ch) in self
[INFO] [stdout]     |                                    ----
[INFO] [stdout]     |                                    |
[INFO] [stdout]     |  __________________________________borrow occurs here
[INFO] [stdout]     | |
[INFO] [stdout] 590 | |                 .char_metrics(source.char_indices())
[INFO] [stdout] ...   |
[INFO] [stdout] 598 | |                 .chain(core::iter::once((placeholder_metrics, '\0')))
[INFO] [stdout]     | |_____________________________________________________________________- a temporary with access to the first borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 629 |                       (0..metrics.unicode_width).try_for_each(|_| write!(self, "{caret_ch}",))?;
[INFO] [stdout]     |                                                               ^^^        ---- second borrow occurs due to use of `*self` in closure
[INFO] [stdout]     |                                                               |
[INFO] [stdout]     |                                                               closure construction occurs here
[INFO] [stdout] ...
[INFO] [stdout] 633 |               }
[INFO] [stdout]     |               - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain<impl Iterator<Item = (Metrics, char)>, std::iter::Once<(Metrics, char)>>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:589:34
[INFO] [stdout]     |
[INFO] [stdout] 589 |               for (metrics, ch) in self
[INFO] [stdout]     |  __________________________________^
[INFO] [stdout] 590 | |                 .char_metrics(source.char_indices())
[INFO] [stdout]     | |____________________________________________________^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:480:26
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ----------------------------------------
[INFO] [stdout]     |                                  |
[INFO] [stdout]     |                                  immutable borrow occurs here
[INFO] [stdout]     |                                  a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 480 |                     _ => write!(self, "{ch}")?,
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] 481 |                 }
[INFO] [stdout] 482 |             }
[INFO] [stdout]     |             - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:454:34
[INFO] [stdout]     |
[INFO] [stdout] 454 |             for (metrics, ch) in self.char_metrics(source.char_indices()) {
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:934:21
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              -------------------------------
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              immutable borrow occurs here
[INFO] [stdout]     |                              a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 934 |                     self.set_label(severity, label_style)?;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 944 |         }
[INFO] [stdout]     |         - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:924:30
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:936:21
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              -------------------------------
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              immutable borrow occurs here
[INFO] [stdout]     |                              a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 936 |                     self.reset()?;
[INFO] [stdout]     |                     ^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 944 |         }
[INFO] [stdout]     |         - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:924:30
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed
[INFO] [stdout]    --> src/term/renderer.rs:942:37
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              -------------------------------
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              borrow occurs here
[INFO] [stdout]     |                              a temporary with access to the first borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 942 |                 spaces.try_for_each(|_| write!(self, " "))?;
[INFO] [stdout]     |                                     ^^^        ---- second borrow occurs due to use of `*self` in closure
[INFO] [stdout]     |                                     |
[INFO] [stdout]     |                                     closure construction occurs here
[INFO] [stdout] 943 |             }
[INFO] [stdout] 944 |         }
[INFO] [stdout]     |         - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:924:30
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]    --> src/term/renderer.rs:935:21
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              -------------------------------
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              immutable borrow occurs here
[INFO] [stdout]     |                              a temporary with access to the immutable borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 935 |                     write!(self, "{}", self.chars().pointer_left)?;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 944 |         }
[INFO] [stdout]     |         - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator<Item = (Metrics, char)>`
[INFO] [stdout]     |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]    --> src/term/renderer.rs:924:30
[INFO] [stdout]     |
[INFO] [stdout] 924 |         for (metrics, ch) in self.char_metrics(char_indices) {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]    --> src/term/renderer.rs:846:23
[INFO] [stdout]     |
[INFO] [stdout] 846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]     |
[INFO] [stdout] 844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout] 845 |         &self,
[INFO] [stdout] 846 ~         char_indices: T,
[INFO] [stdout] 847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed
[INFO] [stdout]     --> src/term/renderer.rs:1029:31
[INFO] [stdout]      |
[INFO] [stdout] 1023 |           for (metrics, _) in self
[INFO] [stdout]      |                               ----
[INFO] [stdout]      |                               |
[INFO] [stdout]      |  _____________________________borrow occurs here
[INFO] [stdout]      | |
[INFO] [stdout] 1024 | |             .char_metrics(source.char_indices())
[INFO] [stdout] 1025 | |             .take_while(|(metrics, _)| metrics.byte_index < start + 1)
[INFO] [stdout]      | |______________________________________________________________________- a temporary with access to the first borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 1029 |                   .try_for_each(|_| write!(self, "{}", self.chars().multi_top))?;
[INFO] [stdout]      |                                 ^^^        ---- second borrow occurs due to use of `*self` in closure
[INFO] [stdout]      |                                 |
[INFO] [stdout]      |                                 closure construction occurs here
[INFO] [stdout] 1030 |           }
[INFO] [stdout]      |           - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile<impl Iterator<Item = (Metrics, char)>, {closure@src/term/renderer.rs:1025:25: 1025:39}>`
[INFO] [stdout]      |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]     --> src/term/renderer.rs:1023:29
[INFO] [stdout]      |
[INFO] [stdout] 1023 |           for (metrics, _) in self
[INFO] [stdout]      |  _____________________________^
[INFO] [stdout] 1024 | |             .char_metrics(source.char_indices())
[INFO] [stdout]      | |________________________________________________^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]     --> src/term/renderer.rs:846:23
[INFO] [stdout]      |
[INFO] [stdout]  846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]      |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]      |
[INFO] [stdout]  844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout]  845 |         &self,
[INFO] [stdout]  846 ~         char_indices: T,
[INFO] [stdout]  847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed
[INFO] [stdout]     --> src/term/renderer.rs:1063:31
[INFO] [stdout]      |
[INFO] [stdout] 1057 |           for (metrics, _) in self
[INFO] [stdout]      |                               ----
[INFO] [stdout]      |                               |
[INFO] [stdout]      |  _____________________________borrow occurs here
[INFO] [stdout]      | |
[INFO] [stdout] 1058 | |             .char_metrics(source.char_indices())
[INFO] [stdout] 1059 | |             .take_while(|(metrics, _)| metrics.byte_index < start)
[INFO] [stdout]      | |__________________________________________________________________- a temporary with access to the first borrow is created here ...
[INFO] [stdout] ...
[INFO] [stdout] 1063 |                   .try_for_each(|_| write!(self, "{}", self.chars().multi_bottom))?;
[INFO] [stdout]      |                                 ^^^        ---- second borrow occurs due to use of `*self` in closure
[INFO] [stdout]      |                                 |
[INFO] [stdout]      |                                 closure construction occurs here
[INFO] [stdout] 1064 |           }
[INFO] [stdout]      |           - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile<impl Iterator<Item = (Metrics, char)>, {closure@src/term/renderer.rs:1059:25: 1059:39}>`
[INFO] [stdout]      |
[INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
[INFO] [stdout]     --> src/term/renderer.rs:1057:29
[INFO] [stdout]      |
[INFO] [stdout] 1057 |           for (metrics, _) in self
[INFO] [stdout]      |  _____________________________^
[INFO] [stdout] 1058 | |             .char_metrics(source.char_indices())
[INFO] [stdout]      | |________________________________________________^
[INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable
[INFO] [stdout]     --> src/term/renderer.rs:846:23
[INFO] [stdout]      |
[INFO] [stdout]  846 |         char_indices: impl Iterator<Item = (usize, char)>,
[INFO] [stdout]      |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit
[INFO] [stdout]      |
[INFO] [stdout]  844 ~     fn char_metrics<T: Iterator<Item = (usize, char)>>(
[INFO] [stdout]  845 |         &self,
[INFO] [stdout]  846 ~         char_indices: T,
[INFO] [stdout]  847 ~     ) -> impl Iterator<Item = (Metrics, char)> + use<T> {
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0500, E0502.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0500`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `codespan-reporting` (lib test) due to 13 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "7a73f8c12305b9c329eefb92d6dd997c914a111b2750be0f5aff6fe015e86ef6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7a73f8c12305b9c329eefb92d6dd997c914a111b2750be0f5aff6fe015e86ef6", kill_on_drop: false }`
[INFO] [stdout] 7a73f8c12305b9c329eefb92d6dd997c914a111b2750be0f5aff6fe015e86ef6
